package cn.le.enums;

public enum EnumIsRestricted {

    Limit("限购"),
    Unlimited("不限购"),
    Unknown("不详");

    private String text;

    EnumIsRestricted(String text){
        this.text = text;
    }

    public String getText() {
        return text;
    }

    public static class ZpptRestricted{
        public static EnumIsRestricted getByCode(Integer code) {
            switch (code){
                case 1:
                    return EnumIsRestricted.Limit;
                case 2:
                    return EnumIsRestricted.Unlimited;
                case 3:
                    return EnumIsRestricted.Unknown;
            }
            return null;
        }
    }
}
